//
//  BIDEditCalendarViewController.h
//  TestCalendar
//
//  Created by mal on 14-1-12.
//  Copyright (c) 2014年 mal. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BIDBaseViewController.h"
#import "EventKitController.h"

@interface BIDEditCalendarViewController : BIDBaseViewController<UIAlertViewDelegate,UITextFieldDelegate>
@property (strong, nonatomic)UIDatePicker *myDatePicker;

@property (strong, nonatomic)EventKitController *kitController;

@property (strong, nonatomic)IBOutlet UITextView *reminderContentTextView;
@property (strong, nonatomic)IBOutlet UITextField *reminderTimeTF;
@property (strong, nonatomic)IBOutlet UITextField *reminderRecurrenceTF;
@property (strong, nonatomic)IBOutlet UIButton *delBtn;

@property (strong, nonatomic)NSDate *reminderDate;

@property (strong, nonatomic)UIToolbar *myToolBar;

@property (strong, nonatomic)EKReminder *reminder;

//日期视图是否已显示
@property (assign, nonatomic)BOOL bDateViewShow;

//提醒的重复模式
@property (assign, nonatomic)int recurrenceMode;

//是新建提醒还是修改提醒
@property (assign, nonatomic)BOOL bEdit;

- (void)tapGesture1:(UIGestureRecognizer*)recognizer;
- (void)tapGesture2:(UIGestureRecognizer*)recognizer;
- (IBAction)delBtnHandler:(id)sender;

- (void)showDatePicker;
- (void)dismissDatePicker;
- (void)confirmBtnHandler;
- (void)cancelBtnHandler;

- (void)leftBtnHandler;
- (void)rightBtnHandler;

@end
